<template>
  <section>
    <el-collapse v-model="control.collapse">

      <el-collapse-item title="基础设置" name="1">
        <xcform_base_inputfieldcode
          v-if="activeData.xcform_base_inputfieldcode&&activeData.xcform_base_inputfieldcode._setting_!==false"
          v-model="activeData.xcform_base_inputfieldcode" />

        <xcform_base_xctitle v-if="activeData.xcform_base_xctitle&&activeData.xcform_base_xctitle._setting_!==false"
          v-model="activeData.xcform_base_xctitle" />

        <xcform_base_property_input_score
          v-if="activeData.xcform_base_property_input_score&&activeData.xcform_base_property_input_score._setting_!==false"
          v-model="activeData.xcform_base_property_input_score" />

        <xcform_base_property_value_autono
          v-if="activeData.xcform_base_property_value_autono&&activeData.xcform_base_property_value_autono._setting_!==false"
          v-model="activeData.xcform_base_property_value_autono" />

        <xcform_base_property_input_upload
          v-if="activeData.xcform_base_property_input_upload&&activeData.xcform_base_property_input_upload._setting_!==false"
          v-model="activeData.xcform_base_property_input_upload" />

        <xcform_base_property_input_date
          v-if="activeData.xcform_base_property_input_date&&activeData.xcform_base_property_input_date._setting_!==false"
          v-model="activeData.xcform_base_property_input_date" />

        <xcform_base_property_input_datetime
          v-if="activeData.xcform_base_property_input_datetime&&activeData.xcform_base_property_input_datetime._setting_!==false"
          v-model="activeData.xcform_base_property_input_datetime" />

        <xcform_base_property_input_number
          v-if="activeData.xcform_base_property_input_number&&activeData.xcform_base_property_input_number._setting_!==false"
          v-model="activeData.xcform_base_property_input_number" />

        <xcform_base_property_input_string
          v-if="activeData.xcform_base_property_input_string&&activeData.xcform_base_property_input_string._setting_!==false"
          v-model="activeData.xcform_base_property_input_string" />

        <xcform_base_property_input_text
          v-if="activeData.xcform_base_property_input_text&&activeData.xcform_base_property_input_text._setting_!==false"
          v-model="activeData.xcform_base_property_input_text" />

        <xcform_base_property_input_subtable
          v-if="activeData.xcform_base_property_input_subtable&&activeData.xcform_base_property_input_subtable._setting_!==false"
          v-model="activeData.xcform_base_property_input_subtable" />

        <xcform_base_property_input_objselect
          v-if="activeData.xcform_base_property_input_objselect&&activeData.xcform_base_property_input_objselect._setting_!==false"
          v-model="activeData.xcform_base_property_input_objselect" />

        <xcform_base_property_input_objselectmulti
          v-if="activeData.xcform_base_property_input_objselectmulti&&activeData.xcform_base_property_input_objselectmulti._setting_!==false"
          v-model="activeData.xcform_base_property_input_objselectmulti" />

        <xcform_base_property_input_select
          v-if="activeData.xcform_base_property_input_select&&activeData.xcform_base_property_input_select._setting_!==false"
          v-model="activeData.xcform_base_property_input_select" />

        <xcform_base_property_input_selectmulti
          v-if="activeData.xcform_base_property_input_selectmulti&&activeData.xcform_base_property_input_selectmulti._setting_!==false"
          v-model="activeData.xcform_base_property_input_selectmulti" />

        <xcform_base_property_input_sepbreak
          v-if="activeData.xcform_base_property_input_sepbreak&&activeData.xcform_base_property_input_sepbreak._setting_!==false"
          v-model="activeData.xcform_base_property_input_sepbreak" />

        <xcform_base_property_input_sepline
          v-if="activeData.xcform_base_property_input_sepline&&activeData.xcform_base_property_input_sepline._setting_!==false"
          v-model="activeData.xcform_base_property_input_sepline" />

        <xcform_base_selecttablefield
          v-if="activeData.xcform_base_selecttablefield&&activeData.xcform_base_selecttablefield._setting_!==false"
          v-model="activeData.xcform_base_selecttablefield" />

        <xcform_base_inputoptions
          v-if="activeData.xcform_base_inputoptions&&activeData.xcform_base_inputoptions._setting_!==false"
          v-model="activeData.xcform_base_inputoptions" />

        <xcform_base_defaultvalue
          v-if="activeData.xcform_base_defaultvalue&&activeData.xcform_base_defaultvalue._setting_!==false"
          v-model="activeData.xcform_base_defaultvalue" />

        <xcform_base_placeholder
          v-if="activeData.xcform_base_placeholder&&activeData.xcform_base_placeholder._setting_!==false"
          v-model="activeData.xcform_base_placeholder" />
      </el-collapse-item>

      <el-collapse-item title="字段属性" name="2">
        <xcform_prop_required v-if="activeData.xcform_prop_required&&activeData.xcform_prop_required._setting_!==false"
          v-model="activeData.xcform_prop_required" />

        <xcform_prop_readonly v-if="activeData.xcform_prop_readonly&&activeData.xcform_prop_readonly._setting_!==false"
          v-model="activeData.xcform_prop_readonly" />

        <xcform_prop_hidden v-if="activeData.xcform_prop_hidden&&activeData.xcform_prop_hidden._setting_!==false"
          v-model="activeData.xcform_prop_hidden" />

        <xcform_prop_unique v-if="activeData.xcform_prop_unique&&activeData.xcform_prop_unique._setting_!==false"
          v-model="activeData.xcform_prop_unique" />

        <xcform_prop_stringlength
          v-if="activeData.xcform_prop_stringlength&&activeData.xcform_prop_stringlength._setting_!==false"
          v-model="activeData.xcform_prop_stringlength" />

        <xcform_prop_stringregex
          v-if="activeData.xcform_prop_stringregex&&activeData.xcform_prop_stringregex._setting_!==false"
          v-model="activeData.xcform_prop_stringregex" />

        <xcform_prop_numberrange
          v-if="activeData.xcform_prop_numberrange&&activeData.xcform_prop_numberrange._setting_!==false"
          v-model="activeData.xcform_prop_numberrange" />
      </el-collapse-item>

      <el-collapse-item title="排版设置" name="3">
        <xcform_layout_span v-if="activeData.xcform_layout_span&&activeData.xcform_layout_span._setting_!==false"
          v-model="activeData.xcform_layout_span" />
      </el-collapse-item>

    </el-collapse>
  </section>
</template>

<script>
  export default {
    props: {
      activeData: {
        type: Object,
        default: null
      },
    },
    data() {
      return {
        sp: {},
        sr: {},
        control: {
          collapse: ['1', '2', '3']
        }
      }
    },
    created(options) {
      let that = this;
      that.xinit();
    },
    methods: {
      xinit() {
        let that = this;
      },
    }
  }
</script>

<style>
  .el-form-item__label {
    line-height: 1px !important;
  }
</style>
